package com.xsqf.jt808.common.util;

import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;

public class PageReqUtil extends PageRequest {

    public PageReqUtil(int page, int size, Sort sort) {
        super(page, size, sort);
    }

    public static PageRequest of(int page, int size) {
        return of(page - 1, size, Sort.unsorted());
    }

}
